<cfcomponent displayname="ScriptWriterExternalStyle" extends="ScriptWriter.ElementBase" output="no">
	
	
	<!--- init() --->
	<cffunction name="init" access="public" returntype="ScriptWriter.ElementBase">
		<cfargument name="path" type="string" required="yes">
		<cfargument name="src" type="string" required="no" default="" />
		<cfargument name="minify" type="boolean" required="no" default="false">
		<cfargument name="outputPath" type="string" required="no" default="">
		<cfargument name="compressor" type="any" required="no" default="" />
		
		<cfset super.init(
			sourcePath=arguments.path, 
			src=arguments.src,
			minify=arguments.minify, 
			outputPath=arguments.outputPath, 
			compressor=arguments.compressor)
		/>
		
		<cfset setExternalOutputFormat("<link type=""text/css"" rel=""stylesheet"" href=""#getPreferredPath()#"" />") />
		<cfset setInlineOutputFormat("<style>#getSourceFull()#</style>") />
		<cfreturn this />
	</cffunction>
	
</cfcomponent>